package com.boyuan.aboutcase;

import android.content.Intent;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.View.OnClickListener;
import android.view.ViewGroup;

import com.boyuan.huijiaoyu.R;
import com.magicsoft.constant.Constant;

/**
 * A simple {@link android.support.v4.app.Fragment} subclass.
 * 
 */
public class AboutCaseFragment extends Fragment implements OnClickListener {

	@Override
	public View onCreateView(LayoutInflater inflater, ViewGroup container,
			Bundle savedInstanceState) {
		View view = inflater.inflate(R.layout.fragment_about_case, container,
				false);
		initUI(view);
		return view;
	}

	private void initUI(View view) {
//		view.findViewById(R.id.rela_add_case).setOnClickListener(this);
	}

	@Override
	public void onClick(View v) {
		switch (v.getId()) {
		case R.id.rela_add_case:
			Intent intent = new Intent(getActivity(),NewCaseDetailActivity.class);
			intent.putExtra("CaseTitle", "新建关联case");
			startActivityForResult(intent, Constant.NewCaseDetail_Code);
			break;

		default:
			break;
		}

	}

}
